Guild icon
S3Drive
Community / support / file path wrong in media backup (android) bug report
Avatar
The Media Backup file path seems to add the folder name of the source location to the destination. My example is i want everything in my 'Camera' folder on my phone to go in photos/2024/ on S3 drive, but they are being uploaded to photos/2024/Camera/ Please could this be fixed as some point? Thanks very much!
👍 1
Avatar
Hi, At some point users requested folder structure to be preserved for a different albums, so they don't end up in one folder: https://s3drive.canny.io/feature-requests/p/preserve-folder-structure-for-a-different-albums-media-backup In theory we could provide a setting in the options to switch to old behaviour, however we're not 100% sure about the potential consequences, e.g. name collision of files coming from a different albums. As long as a single album (e.g. Camera) is selected this would work fine, but if you select multiple albums there is some collision risk. Perhaps we could allow this option only when single album is selected, but this is somewhat tricky, as safeguards would have to be placed in multiple places (album selection/deselection etc.). Do you have any thoughts about that? Thanks!
Avatar
Ah ok i understand. yes a 'create folders for each album' toggle switch would be good. Any file name collisions could perhaps just have a '_01' added. Or alternatively you could confirm the backup path when an album is selected. For example, by defaulty it would say 'photos/2024/camera/' but if I don't want it in its own folder, i just remove 'camera' from the file path to leave 'photos/2024/'. or i could make a completely new upload location for it. (edited)
Avatar
Avatar
hugh1988
Ah ok i understand. yes a 'create folders for each album' toggle switch would be good. Any file name collisions could perhaps just have a '_01' added. Or alternatively you could confirm the backup path when an album is selected. For example, by defaulty it would say 'photos/2024/camera/' but if I don't want it in its own folder, i just remove 'camera' from the file path to leave 'photos/2024/'. or i could make a completely new upload location for it. (edited)
I would probably stay away from a suffix approach given that we rely on S3 protocol which itself doesn't have any overwrite protections, conditional updates built-in. In order to check if collision exist we would need to query the S3 first (additional billable HEAD request), but by the time we get the response and issue new upload request there is no guarantee that file wasn't added in the meantime to the bucket (It probably wasn't, but there is a room for a race-condition that we don't want to introduce). 2nd idea, I think this would work. I've added a feature request: https://s3drive.canny.io/feature-requests/p/custom-album-upload-path (edited)
At the moment S3Drive will upload media to / path, where SuffixDirectoryPath is configurable and by default set to Automatic
😁 1
Avatar
That sounds great. Really appreciating your commitment to getting this app perfect.
Exported 5 message(s)
Timezone: UTC+0